<template>
	<view>
		<view class="u-text-center u-m-t-20 weikaishi3">点击名称，跳转图示链接</view>
		<view class="wrap">
			<u-row>
				<u-col span="12" text-align="center" v-if="wmenu.jn1">
					<view class="u-line-1 u-m-t-14">
						<span>
							<u-link font-size="34" href="http://39.105.212.172:8086/Module_Storage/Stock_Img/JN.html?WDBH=ZS_JN&KFMC=%E6%BD%8D%E5%9D%8A%E6%88%90%E5%93%81%E6%B5%8E%E5%8D%97%E4%BB%93&T=1626483100040" :under-line="true">济南成品仓</u-link>
						</span>
					</view>
				</u-col>
				<u-col span="12" text-align="center" v-if="wmenu.bym1">
					<view class="u-line-1 u-m-t-14">
						<span>
							<u-link font-size="34" href="https://jilu56it.top/storageStock/kft_bym" :under-line="true">贝因美DC仓</u-link>
						</span>
					</view>
				</u-col>
				<u-col span="12" text-align="center" v-if="wmenu.jn4">
					<view class="u-line-1 u-m-t-14">
						<span>
							<u-link font-size="34" href="https://jilu56it.top/storageStock/kft_hx" :under-line="true">华熙成品仓</u-link>
						</span>
					</view>
				</u-col>
				<u-col span="12" text-align="center" v-if="wmenu.qd1">
					<view class="u-line-1 u-m-t-14">
						<span>
							<u-link font-size="34" href="https://jilu56it.top/storageStock/kft_qd" :under-line="true">青岛成品仓</u-link>
						</span>
					</view>
				</u-col>
				<u-col span="12" text-align="center" v-if="wmenu.yc3">
					<view class="u-line-1 u-m-t-14">
						<span>
							<u-link font-size="34" href="https://jilu56it.top/storageStock/kft_rf" :under-line="true">软风成品仓</u-link>
						</span>
					</view>
				</u-col>
				<u-col span="12" text-align="center" v-if="wmenu.jnxs">
					<view class="u-line-1 u-m-t-14">
						<span>
							<u-link font-size="34" href="#" :under-line="true">希森美康仓</u-link>
						</span>
					</view>
				</u-col>
				<u-col span="12" text-align="center" v-if="wmenu.st1">
					<view class="u-line-1 u-m-t-14">
						<span>
							<u-link font-size="34" href="http://39.105.212.172:8086/Module_Storage/Stock_Img/ST.html?WDBH=ZS_ST&KFMC=%E6%B1%95%E5%A4%B4%E6%88%90%E5%93%81%E5%BA%93&T=1626314783791" :under-line="true">汕头成品仓</u-link>
						</span>
					</view>
				</u-col>
				<u-col span="12" text-align="center" v-if="wmenu.wz1">
					<view class="u-line-1 u-m-t-14">
						<span>
							<u-link font-size="34" href="http://39.105.212.172:8086/Module_Storage/Stock_Img/WZ.html?WDBH=ZS_WZ&KFMC=%E6%B8%A9%E5%B7%9E%E6%88%90%E5%93%81%E5%BA%93&T=1626314812967" :under-line="true">温州成品仓</u-link>
						</span>
					</view>
				</u-col>
				<u-col span="12" text-align="center" v-if="wmenu.ss1">
					<view class="u-line-1 u-m-t-14">
						<span>
							<u-link font-size="34" href="http://39.105.212.172:8086/Module_Storage/Stock_Img/SJZ.html?WDBH=ZS_SJZ&KFMC=%E7%9F%B3%E5%AE%B6%E5%BA%84%E6%88%90%E5%93%81%E4%BB%93&T=1626314837064" :under-line="true">石家庄成品仓</u-link>
						</span>
					</view>
				</u-col>
				<u-col span="12" text-align="center" v-if="wmenu.nj1">
					<view class="u-line-1 u-m-t-14">
						<span>
							<u-link font-size="34" href="http://39.105.212.172:8086/Module_Storage/Stock_Img/NJ.html?WDBH=ZS_NJ&KFMC=%E5%8D%97%E4%BA%AC%E6%88%90%E5%93%81%E4%BB%93&T=1626314879016" :under-line="true">南京成品仓</u-link>
						</span>
					</view>
				</u-col>
			</u-row>
		</view>
	</view>
</template>
<script>
	export default {
		data() {
			return {
				wmenu: {
					jn1:false,
					bym1:false,
					jn4:false,
					qd1:false,
					yc3:false,
					jnxs:false,
					st1:false,
					wz1:false,
					ss1:false,
					nj1:false,
				},
			}
		},
		onLoad(open) {
			this.$http.post('/rest/storage/Warehouselist',{
			},{
				params: {
				},
				header: {
					'Authorization' :uni.getStorageSync('token'),
				}
			}).then(res => {
				if(res.data.data.length > 0){
					for(let item1 of res.data.data) {
						if(item1.warehouseName == '济南成品仓'){
							this.wmenu.jn1 = true
						}
						if(item1.warehouseName == '济南贝因美DC仓'){
							this.wmenu.bym1 = true
						}
						if(item1.warehouseName == '华熙商贸成品库'){
							this.wmenu.jn4 = true
						}
						if(item1.warehouseName == '潍坊成品青岛仓'){
							this.wmenu.qd1 = true
						}
						if(item1.warehouseName == '济南软风仓'){
							this.wmenu.yc3 = true
						}
						if(item1.warehouseName == '希森美康仓'){
							this.wmenu.jnxs = true
						}
						if(item1.warehouseName == '汕头成品仓'){
							this.wmenu.st1 = true
						}
						if(item1.warehouseName == '石家庄成品仓'){
							this.wmenu.ss1 = true
						}
						if(item1.warehouseName == '南京成品仓'){
							this.wmenu.nj1 = true
						}
					}
				}
			})
		},
		methods: {
		},
	}
</script>
<style lang="scss">
	.u-body-item {
		padding: 20rpx 10rpx;
	}
	.wrap {
		padding: 2rpx;
	}
	.u-row {
		margin: 2rpx 0;
	}
	.weikaishi2{
		font-size: 34rpx;
	}
	.weikaishi3{
		font-size: 34rpx;
	}
</style>
